Page({
  data: {
    swiperList:[]
    
  },
  onLoad:function(options){
    wx.request({
      url: 'https://api-hmugo-web.itheima.net/api/public/v1/home/swiperdata',
      /*data: {},
      header: {'content-type':'application/json'},
      method: 'GET',
      dataType: 'json',
      responseType: 'text',*/
      success: (result) => {
        console.log(result)
        this.setData({
          swiperList:result.data.message
        })
      }
     /* fail: () => {},
      complete: () => {}*/
    }); 
  }
  
});
  
